package org.ccay.security.vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author chaowangbang
 *
 */
public class PermissionTreeNodeVO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	/**
	 * 节点展示名
	 */
	private String name;
	/**
	 * 权限的字符串表示（如果当前是父节点，此值为空）
	 */
	private String permissionString;
	
	/**
	 * 权限名称（包括父路径）（如果当前是父节点，此值为空）
	 */
	private String permissionName;
	/**
	 * 是否拥有此权限（当时子节点时表示是否拥有）
	 */
	private Boolean checked;
	/**
	 * 子节点（如果当前已是子节点，此值未空）
	 */
	private List<PermissionTreeNodeVO> children = new ArrayList<PermissionTreeNodeVO>();
	
	/**
	 * 描述
	 */
	private String title;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPermissionString() {
		return permissionString;
	}
	public void setPermissionString(String permissionString) {
		this.permissionString = permissionString;
	}
	public List<PermissionTreeNodeVO> getChildren() {
		return children;
	}
	public void setChildren(List<PermissionTreeNodeVO> children) {
		this.children = children;
	}
	public Boolean getChecked() {
		return checked;
	}
	public void setChecked(Boolean checked) {
		this.checked = checked;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getPermissionName() {
		return permissionName;
	}
	public void setPermissionName(String permissionName) {
		this.permissionName = permissionName;
	}
}
